package com.nxcy.common.util;

import java.util.Iterator;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

public class StringUtil {

    public static boolean isEmpty(String s) {
        return s == null || s.length() == 0;
    }

    public static boolean isNotEmpty(String s) {
        return !isEmpty(s);
    }

    public static void main(String[] args) {
        Properties props = System.getProperties();

        Set res = props.entrySet();

        Iterator it = res.iterator();

        while (it.hasNext()) {
            Map.Entry e = (Map.Entry) it.next();

            System.out.println(e.getKey() + "=" + e.getValue());

        }

    }
}
